const Router = require('koa-router')
const FileController = require('../controllers/file.controller')
const jwt = require('../middlewares/jwt.middleware')

const router = new Router()
const fileController = new FileController()
router.prefix('/api/files')

router.post('/', jwt, fileController.addOne)

module.exports = router